package com.xiaotu.service;

import com.xiaotu.dao.TvDao;
import com.xiaotu.model.TvModel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author 张晓
 * @create 2021-07-07 14:05
 */
@Service
public class TvService {

    @Autowired
    private TvDao tvDao;

    public List<TvModel> getTvList() {
        return tvDao.getTvList();
    }

    public List<Map<String, Object>> getTvList2() {
        return tvDao.getTvList2();
    }

    public void insertTv(TvModel tvModel) {
        tvDao.insertSelective(tvModel);
    }

}
